<template>
    <div class="wrapper">
        <div class="top">
            <img src="../components/common/img/noConnection.png"/>
            <div class="message">哎呀，网络断了</div>
        </div>
        <div class="btn" @click="refresh">点击刷新</div>
    </div>
</template>
<script>
    export default {
        props: ['error'],
        methods: {
            refresh(){
                window.location.reload()
            }
        }
    }
</script>

<style scoped lang="less">
    .wrapper {
        height: 100vh;
        background: #fafafa;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        .top {
            img {
                width: 180px;
            }
            .message {
                font-size: 18px;
                color: #000000;
                margin-top: 30px;
            }
        }
        .btn {
            background: #000000;
            box-shadow: 0 4px 10px 0 rgba(0,0,0,0.20);
            border-radius: 21px;
            width: 150px;
            height: 44px;
            font-size: 18px;
            color: #FFFFFF;
            line-height: 44px;
            margin-top: 60px;
        }
    }
</style>
